#include <gflags/gflags.h>
#include <iostream>

DEFINE_string(ip,"127.0.0.1","ip地址");
DEFINE_int32(prot,8989,"这是一个端口号");
DEFINE_bool(is_debug,true,"是否进行调试");


int main(int argc, char* argv[])
{
    google::ParseCommandLineFlags(&argc,&argv,true);
    std::cout<<FLAGS_ip <<std::endl;
    std::cout<<FLAGS_prot <<std::endl;
    std::cout<<FLAGS_is_debug <<std::endl;
    return 0;
}